public class ProjectVersion {
    int major;
    int minor;

    int getMajor() {
        return major
    }

    void setMajor(int major) {
        this.major = major
    }

    int getMinor() {
        return minor
    }

    void setMinor(int minor) {
        this.minor = minor
    }

    ProjectVersion(int major, int minor) {
        this.major = major
        this.minor = minor
    }
}

ProjectVersion pv1 = new ProjectVersion(1, 1);
println pv1.major;
ProjectVersion pv2 = null;
println pv1 == pv2;